package com.handy.plugin.auth.action;

public class AuthDemo extends Action {

	public String execute() {
		Integer authid=242;

		if (getAuthority().is(authid,"1")){
			System.out.println("1yes");
		}else{
			System.out.println("1no");
		}
		
		if (getAuthority().is(authid,"2")){
			System.out.println("2yes");
		}else{
			System.out.println("2no");
		}
		
		if (getAuthority().is(authid,"3")){
			System.out.println("3yes");
		}else{
			System.out.println("3no");
		}
		
		if (getAuthority().is(authid,"4")){
			System.out.println("4yes");
		}else{
			System.out.println("4no");
		}
		
		if (getAuthority().is(authid,"5")){
			System.out.println("5yes");
		}else{
			System.out.println("5no");
		}
		
		if (getAuthority().is(authid,"6")){
			System.out.println("6yes");
		}else{
			System.out.println("6no");
		}
		
		if (getAuthority().is(authid,"7")){
			System.out.println("7yes");
		}else{
			System.out.println("7no");
		}
		
		if (getAuthority().is(authid,"8")){
			System.out.println("8yes");
		}else{
			System.out.println("8no");
		}

		return HANDY_ACTION_RESPONSE;
	}

}
